Skip to content

feat: add support for apisix backend mode#181

Merged
dspo merged 6 commits into
release-v2-devfrom
feat/apisix-mod
Jun 25, 2025
Merged

feat: add support for apisix backend mode#181
dspo merged 6 commits into
release-v2-devfrom
feat/apisix-mod

Conversation

@dspo
Copy link
Copy Markdown
Contributor

@dspo dspo commented Jun 25, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Support backend mode apisix.

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@dspo dspo requested a review from AlinsRan June 25, 2025 06:59
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 25, 2025

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-06-25T10:52:20Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    failedTests:
    - HTTPRouteCrossNamespace
    - HTTPRouteInvalidBackendRefUnknownKind
    result: failure
    skippedTests:
    - HTTPRouteHTTPSListener
    statistics:
      Failed: 2
      Passed: 30
      Skipped: 1
  name: GATEWAY-HTTP
  summary: Core tests failed with 2 test failures.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 25, 2025

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-06-25T10:08:13Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    result: partial
    skippedTests:
    - HTTPRouteHTTPSListener
    statistics:
      Failed: 0
      Passed: 32
      Skipped: 1
  name: GATEWAY-HTTP
  summary: Core tests partially succeeded with 1 test skips.

Comment thread internal/provider/adc/executor.go
Comment thread internal/provider/adc/adc.go Outdated
if apiv2.Is(obj) {
return nil
}
case BackendModeAPISIX:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not return?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread test/e2e/framework/apisix_consts.go Outdated
Comment thread test/e2e/framework/manifests/etcd.yaml Outdated
Comment thread internal/provider/adc/adc.go Outdated
Comment thread test/e2e/scaffold/apisix_deployer.go Outdated
kubectlOpts := k8s.NewKubectlOptions("", "", opts.Namespace)

if framework.ProviderType == adc.BackendModeAPISIX {
opts.ServiceName = "apisix"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why serviceName should be fixed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实不是必要的。但打印日志中 ServiceName 是 "apisix-standalone" 的话那么一瞬间有点令人误解,怀疑是不是自己 ProviderType 没写对。所以改一下。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filename can be changed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread test/e2e/framework/apisix_consts.go Outdated
@dspo dspo merged commit 1d3f633 into release-v2-dev Jun 25, 2025
12 of 15 checks passed
@ronething ronething deleted the feat/apisix-mod branch September 9, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants